package routers

import (
	"commodity-mgr/handlers"
	"github.com/gin-gonic/gin"
)

func Routers() *gin.Engine {
	r := gin.Default()
	r.POST("login", handlers.Login)
	r.GET("list", handlers.List)
	r.POST("addCom", handlers.AddCom)
	r.GET("comlist", handlers.AddList)
	return r

}
